package com.fr.tree;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class GroupTree implements Serializable {

    @Override
    public String toString() {
        return "GroupTree [groupId=" + groupId + ", groupName=" + groupName + ", leader=" + leader + ", hunterIds=" + hunterIds + ", subTree=" + subTree
                + ", canHit=" + canHit + "]";
    }

    /**
     */
    private static final long serialVersionUID = -1843848802832285406L;

    private long groupId;
    private String groupName;
    private long leader;
    private List<Long> hunterIds = new ArrayList<>();
    private List<GroupTree> subTree = new ArrayList<>();

    private boolean canHit = false;

    public long getLeader() {
        return leader;
    }

    public void setLeader(long leader) {
        this.leader = leader;
    }

    public List<Long> getHunterIds() {
        return hunterIds;
    }

    public void setHunterIds(List<Long> hunterIds) {
        this.hunterIds = hunterIds;
    }

    public void addHunterId(long hunterId) {
        this.hunterIds.add(hunterId);
    }

    public List<GroupTree> getSubTree() {
        return subTree;
    }

    public void setSubTree(List<GroupTree> subTree) {
        this.subTree = subTree;
    }

    public void addSubTree(GroupTree subTree) {
        this.subTree.add(subTree);
    }

    public long getGroupId() {
        return groupId;
    }

    public void setGroupId(long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public boolean isCanHit() {
        return canHit;
    }

    public void setCanHit(boolean canHit) {
        this.canHit = canHit;
    }

}
